package tech.com.commoncore.user;

import java.io.Serializable;

public class CurrentUser implements Serializable {
    public String token;            //用于后台识别
    public String appInfo;          //设备信息,可默认iPhone
    public String objectId;         //创建用户唯一标识
    public int userId;              //后台用户id
    public int userType;            //后台用户类型
    public int sex;                 //性别
    public long birthday;           //生日
    public long lastLoginTime;      //最后登录时间
    public int score;               //积分
    public int coin;                //应用币
    public String balance;          //余额
    public int bodyPoint;           //活力点
    public int computingPoint;      //计算点
    public long createTime;         //创建时间
    public int userStatus;          //用户状态
    public String userLogin;        //账号
    public String userPass;         //密码
    public String nickName;         //昵称
    public String email;            //邮箱
    public String userUrl;          //邮箱
    public String avatar;           //头像
    public String signature;        //签名
    public String lastLoginIp;      //最后登录ip
    public String userActivationKey;//活用的key值
    public String mobile;           //手机号码
    public String more;             //更多
    public String app;              //设备信息
    public String lcId;             //未定义
    public String lcKey;            //未定义
    public String lcUrl;            //未定义
    public boolean isLogin;         //是否登录

    public CurrentUser(NUser nUser) {
        token = nUser.getToken();
        appInfo = nUser.getApp();
        objectId = nUser.getObject_id();
        userId = nUser.getUser().getId();
        userType = nUser.getUser().getUser_type();
        sex = nUser.getUser().getSex();
        birthday = nUser.getUser().getBirthday();
        lastLoginTime = nUser.getUser().getLast_login_time();
        score = nUser.getUser().getScore();
        coin = nUser.getUser().getCoin();
        balance = nUser.getUser().getBalance();
        bodyPoint = nUser.getUser().getBody_point();
        computingPoint = nUser.getUser().getComputing_point();
        createTime = nUser.getUser().getCreate_time();
        userStatus = nUser.getUser().getUser_status();
        userLogin = nUser.getUser().getUser_login();
        userPass = nUser.getUser().getUser_pass();
        nickName = nUser.getUser().getUser_nickname();
        email = nUser.getUser().getUser_email();
        userUrl = nUser.getUser().getUser_url();
        avatar = nUser.getUser().getAvatar();
        signature = nUser.getUser().getSignature();
        lastLoginIp = nUser.getUser().getLast_login_ip();
        userActivationKey = nUser.getUser().getUser_activation_key();
        mobile = nUser.getUser().getMobile();
        more = nUser.getUser().getMore();
        app = nUser.getUser().getApp();
        lcId = nUser.getUser().getLc_id();
        lcKey = nUser.getUser().getLc_key();
        lcUrl = nUser.getUser().getLc_url();
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getAppInfo() {
        return appInfo;
    }

    public void setAppInfo(String appInfo) {
        this.appInfo = appInfo;
    }

    public String getObjectId() {
        return objectId;
    }

    public void setObjectId(String objectId) {
        this.objectId = objectId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getUserType() {
        return userType;
    }

    public void setUserType(int userType) {
        this.userType = userType;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public long getBirthday() {
        return birthday;
    }

    public void setBirthday(long birthday) {
        this.birthday = birthday;
    }

    public long getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(long lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public int getCoin() {
        return coin;
    }

    public void setCoin(int coin) {
        this.coin = coin;
    }

    public String getBalance() {
        return balance;
    }

    public void setBalance(String balance) {
        this.balance = balance;
    }

    public int getBodyPoint() {
        return bodyPoint;
    }

    public void setBodyPoint(int bodyPoint) {
        this.bodyPoint = bodyPoint;
    }

    public int getComputingPoint() {
        return computingPoint;
    }

    public void setComputingPoint(int computingPoint) {
        this.computingPoint = computingPoint;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public int getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(int userStatus) {
        this.userStatus = userStatus;
    }

    public String getUserLogin() {
        return userLogin;
    }

    public void setUserLogin(String userLogin) {
        this.userLogin = userLogin;
    }

    public String getUserPass() {
        return userPass;
    }

    public void setUserPass(String userPass) {
        this.userPass = userPass;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUserUrl() {
        return userUrl;
    }

    public void setUserUrl(String userUrl) {
        this.userUrl = userUrl;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    public String getUserActivationKey() {
        return userActivationKey;
    }

    public void setUserActivationKey(String userActivationKey) {
        this.userActivationKey = userActivationKey;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getMore() {
        return more;
    }

    public void setMore(String more) {
        this.more = more;
    }

    public String getApp() {
        return app;
    }

    public void setApp(String app) {
        this.app = app;
    }

    public String getLcId() {
        return lcId;
    }

    public void setLcId(String lcId) {
        this.lcId = lcId;
    }

    public String getLcKey() {
        return lcKey;
    }

    public void setLcKey(String lcKey) {
        this.lcKey = lcKey;
    }

    public String getLcUrl() {
        return lcUrl;
    }

    public void setLcUrl(String lcUrl) {
        this.lcUrl = lcUrl;
    }

    public boolean isLogin() {
        return isLogin;
    }

    public void setLogin(boolean login) {
        isLogin = login;
    }
}
